﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lm.Common.DAL.ModelCodeGenerator.PropertyGenerator
{
    class datetimeGenerator:IPropertyGenerator
    {
        public string Generate(ModelProperty property)
        {            
            if (property.CanNull)
            {
                return "public DateTime? " + property.Name + " { get; set; }";
            }
            else
            {
                return "public DateTime " + property.Name + " { get; set; }";
            }
        }
    }
}
